package com.example.joke.custom

import android.content.Intent
import com.example.joke.base.navigationbar.AbsNavigationBar
import com.example.joke.custom.indicator.IndicatorActivity
import com.example.joke.custom.kg.KGSlideMenuActivity
import com.example.joke.custom.letter.LetterActivity
import com.example.joke.custom.listview.ScrollListViewActivity
import com.example.joke.custom.progress.ProgressActivity
import com.example.joke.custom.shape58.Shape58Activity
import com.example.joke.custom.stepview.QQStepActivity
import com.example.joke.custom.tag.TagActivity
import com.example.joke.custom.tbgrade.TbGradeActivity
import com.example.joke.custom.textcolor.TextColorActivity
import com.example.joke.custom.textview.CustomTextViewActivity
import com.example.joke.databinding.ActivityCustomBinding
import com.example.joke.frame.BaseSkinActivity
import com.example.joke.frame.DefaultNavigationBar
import com.example.joke.test.TestOrderActivity

class CustomActivity : BaseSkinActivity<ActivityCustomBinding>() {

    override fun setListener() {
        binding.tvSv.setOnClickListener {
            startActivity(Intent(this@CustomActivity, ScrollListViewActivity::class.java))
        }
        binding.tvTv.setOnClickListener {
            startActivity(Intent(this@CustomActivity, CustomTextViewActivity::class.java))
        }
        binding.tvQq.setOnClickListener {
            startActivity(Intent(this@CustomActivity, QQStepActivity::class.java))
        }
        binding.tvColor.setOnClickListener {
            startActivity(Intent(this@CustomActivity, TextColorActivity::class.java))
        }
        binding.tvBar.setOnClickListener {
            startActivity(Intent(this@CustomActivity, ProgressActivity::class.java))
        }
        binding.tv58.setOnClickListener {
            startActivity(Intent(this@CustomActivity, Shape58Activity::class.java))
        }
        binding.tvTb.setOnClickListener {
            startActivity(Intent(this@CustomActivity, TbGradeActivity::class.java))
        }
        binding.tvLetter.setOnClickListener {
            startActivity(Intent(this@CustomActivity, LetterActivity::class.java))
        }
        binding.tvHeight.setOnClickListener {
            startActivity(Intent(this@CustomActivity, WidthHeightActivity::class.java))
        }
        binding.tvTag.setOnClickListener {
            startActivity(Intent(this@CustomActivity, TagActivity::class.java))
        }
        binding.tvKg.setOnClickListener {
            startActivity(Intent(this@CustomActivity, KGSlideMenuActivity::class.java))
        }
        binding.tvQq1.setOnClickListener {
//            startActivity(Intent(this@CustomActivity, TagActivity::class.java))
        }
        binding.tvIndicator.setOnClickListener {
            startActivity(Intent(this@CustomActivity, IndicatorActivity::class.java))
        }
        binding.tvOrder.setOnClickListener {
            startActivity(Intent(this@CustomActivity, TestOrderActivity::class.java))
        }
    }

    override fun initData() {
    }

    override fun initTitle() {
        DefaultNavigationBar.Builder(this)
            .setTitle("自定义view")
            .builder<AbsNavigationBar.Builder.AbsNavigationParams>()
    }

    override fun getBinding1(): ActivityCustomBinding {
        return ActivityCustomBinding.inflate(layoutInflater)
    }
}